<template>
  <el-menu
    default-active="2"
    class="el-menu-vertical-demo"
    @open="handleOpen"
    @close="handleClose"
    background-color="#304156"
    text-color="#fff"
    active-text-color="#ffd04b"
    unique-opened=true>
    <el-submenu index="1">
      <template slot="title">
        <i class="el-icon-location"></i>
        <span>版本高保</span>
      </template>
      <el-menu-item index="1-4" background-color='#ffff'>
        <template slot="title">选项4</template>
      </el-menu-item>
    </el-submenu>
  </el-menu>
</template>

<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
</style>

<script>
export default {
  data () {
    return {
      isCollapse: true
    }
  },
  methods: {
    handleOpen (key, keyPath) {
      console.log(key, keyPath)
    },
    handleClose (key, keyPath) {
      console.log(key, keyPath)
    }
  }
}
</script>

<style scoped>
.el-menu {
  border-right: solid 0px;
}
.el-menu-item{
    background-color: #1F2D3D!important;
  }
</style>
